#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<iostream>
#include<string.h>
using namespace std;
int main()
{
    char s[50];
    int count = 0, len = 0, i;
    while (cin>>s)
    {
        if (cin.get() == '\n')
            break;
    }
    len = strlen(s);
    for (i = 0; i < len; i++)
    {
        if (s[i] == '1')
        {
            count++;
        }
    }
    if (count > (len / 2))
        printf("Yes");
    else
        printf("No");
    return 0;
}